home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
misc_src
/
knowhow4
/
nret.cpp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-11-01
|
217 b
|
15 lines
#include "nret.h"
int nRet(char* string)
{
char* str = string;
int j = 0;
for(int i = 0; str[i]; i++)
{
if(str[i] == '\n')
j++;
}
return j;
}
///////////////////////////